package com.luwanglin;


import com.luwanglin.annotation.RpcScan;
import com.luwanglin.remoting.transport.netty.server.NettyRpcServer;
import com.luwanglin.remoting.transport.socket.SocketRpcServer;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author lwl
 */
@RpcScan(basePackage = {"com.luwanglin"})
public class SocketServerMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SocketServerMain.class);
        SocketRpcServer socketRpcServer = (SocketRpcServer) context.getBean("socketRpcServer");
        socketRpcServer.start();
    }
}
